package com.lnsf.bookstore.web.keyWord.service.impl;

import com.lnsf.bookstore.web.keyWord.dao.ApiKeyWordMapper;
import com.lnsf.bookstore.web.keyWord.service.ApiKeywordService;
import com.lnsf.bookstore.web.keyWord.vo.ApiKeyWord;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class ApiKeywordServiceImpl implements ApiKeywordService{
    @Autowired
    private ApiKeyWordMapper apiKeyWordMapper;


    public ApiKeyWord queryObject(Integer id) {
        return apiKeyWordMapper.queryObject(id);
    }


    public List<ApiKeyWord> queryList(Map<String, Object> map) {
        return apiKeyWordMapper.queryList(map);
    }


    public int queryTotal(Map<String, Object> map) {
        return apiKeyWordMapper.queryTotal(map);
    }


    public void save(ApiKeyWord goods) {
        apiKeyWordMapper.save(goods);
    }


    public void update(ApiKeyWord goods) {
        apiKeyWordMapper.update(goods);
    }


    public void delete(Integer id) {
        apiKeyWordMapper.delete(id);
    }


    public void deleteBatch(Integer[] ids) {
        apiKeyWordMapper.deleteBatch(ids);
    }

    public List<Map> hotKeywordList(Map<String, Object> map) {
        return apiKeyWordMapper.hotKeywordList(map);
    }
}
